package com.dongjiantong.quarantine.serviceImpl;

import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.quarantine.model.DjtButcherReportCerts;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * Created by mz on 21/11/17.
 *
 */
public interface DjtButcherReportCertsReadService extends BaseService<DjtButcherReportCerts> {

    /**
     * 获取当前屠宰单据的发证数量
     * @param map 屠宰检疫单据id
     * @return Long
     */
    Long countByReportId(Map<String , Object> map);

    /**
     * 分页查询屠宰检疫的证
     * @param pageNo 页码
     * @param pageSize 每页多少条
     * @param map 参数
     * @return PageInfo<DjtButcherReportCerts>
     */
    PageInfo<DjtButcherReportCerts> paging(Integer pageNo, Integer pageSize, Map<String , Object> map);
}
